package com.order.center.controller;

import com.pay.common.resp.PayNotifyData;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 订单支付完成后的异步回调
 */
@RestController
public class OrderNotifyController {

    /**
     * 接收支付中心的支付回调
     */
    @RequestMapping("/orderPay/notify")
    public String orderNotify(@RequestBody PayNotifyData payNotifyData){

        System.out.println("收到支付中心的支付回调,回调参数："+ payNotifyData);

        //写代码，更新订单状态



        return "fail";

    }

}
